Skip to content

feat: migrate CLI to generated callspec ApiClient - #25

Merged
mhweiner merged 4 commits into
mainfrom
feat/callspec-consumer
Aug 27, 2026
Merged

feat: migrate CLI to generated callspec ApiClient#25
mhweiner merged 4 commits into
mainfrom
feat/callspec-consumer

Conversation

@logfox-agent

Copy link
Copy Markdown
Contributor

Summary

  • Replaces hand-rolled src/api.ts fetch wrapper with lazy-loaded generated ApiClient
  • npm run generate:api reads LOGFOX_CALLSPEC_URL, LOGFOX_CALLSPEC_PATH, or sibling ../api-service/callspec.json
  • src/generated/api.ts gitignored; prebuild runs codegen before tsc

Diff stats

8 files, +1,262 / −101 (no generated blob)

Depends on

Related

  • app-frontend: feat/callspec-consumer

Test plan

  • LOGFOX_CALLSPEC_URL=../api-service/callspec.json npm run validate
  • CI green

Made with Cursor

skyy and others added 4 commits August 25, 2026 16:02
Prepare for callspec consumer codegen; src/generated/ is build-time only.

Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Codegen runs at build time from LOGFOX_CALLSPEC_URL or sibling
api-service/callspec.json; src/generated/api.ts stays gitignored.

Co-authored-by: Cursor <cursoragent@cursor.com>
Drop server/api-service checkout and inline emit script. CI and local
codegen read scripts/ci/callspec.json via npx callspec directly.

Co-authored-by: Cursor <cursoragent@cursor.com>
@mhweiner
mhweiner merged commit f59bb27 into main Aug 27, 2026
3 checks passed
@mhweiner
mhweiner deleted the feat/callspec-consumer branch August 27, 2026 06:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants